$(document).ready(function() {
           
            $(".reply_btn").click(function(event) {
                event.stopPropagation();
                $(".text_one").hide(100); 
                $(".ph_btn_two").show(100); 
                $(".text_two").show(100);
            }); 
            
            $(".answerForm").Validform({
                btnSubmit:".release", 
                tiptype:function(msg){
                    layer.alert(msg,{icon:0});    
                },
                tipSweep:true,
                ajaxPost:true,
                callback:function(o){
                    layer.closeAll();
                    if (o.status == 4000) { 
                        if(o.return_url=="/mobile/login/")
                        { 
                            layer.msg(o.message,{icon:0,skin:'layer_mobile_login'});    
                            setTimeout("window.location.href='/mobile/login/'", 2000);
                        }
                        else
                           $('.login').trigger("click");    
                    }
                    else if (o.status == 200) {
                        layer.msg(o.message,{icon:0,skin:'layer_mobile_login'});       
                        setTimeout(function () {
                            window.location.reload();
                        }, 1000);   
                    } else {
                        layer.msg(o.message,{icon:0,skin:'layer_mobile_login'});    
                    } 
                }
            });
            $(".replayForm").Validform({ 
                tiptype:function(msg){
                    layer.alert(msg,{icon:0});    
                },
                tipSweep:true,
                ajaxPost:true,
                callback:function(o){
                    layer.closeAll();
                    if (o.status == 4000) { 
                        if(o.return_url=="/mobile/login/")
                        { 
                            layer.msg(o.message,{icon:0,skin:'layer_mobile_login'});    
                            setTimeout("window.location.href='/mobile/login/'", 2000);
                        }
                        else
                           $('.login').trigger("click");   
                    }
                    else if (o.status == 200) {
                        layer.msg(o.message,{icon:0,skin:'layer_mobile_login'});       
                        setTimeout(function () {
                            window.location.reload();
                        }, 1000);   
                    } else {
                        layer.msg(o.message,{icon:0,skin:'layer_mobile_login'});    
                    } 
                }
            });

        });
    function seachVal(){
        var val=$("#seachKey").val();
         window.location.href = '/answer/index/0-' + val +".html";
    } 
    function replayComment(val){
        var val=$("#repalyVal").val(val);
    }
        
